{% load staticfiles %}

<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <title>{% block title %}在线教育{% endblock %}</title>
    <link href="{% static "css/base.css" %}" rel="stylesheet">


</head>

<body>
    <div id="header">
        <a href="/" class="logo">在线教育</a>
        <ul class="menu">
            {% if request.user.is_authenticated %}
                <li><a href="{% url "logout" %}">退出</a></li>
            {% else %}
                <li><a href="{% url "login" %}">登陆</a></li>
            {% endif %}
        </ul>
    </div>

    <div id="content">
        {% block content %}
        {% endblock %}
    </div>

    <script src="http://code.jquery.com/ui/1.11.3/jqueryui/1.11.3/jquery-ui.js"></script>
    <script src="http://code.jquery.com/jquery-1.4.1.min.js"></script>

    <script>
        $(document).ready(function() {
            {% block domready %}
            {% endblock %}
        });
    </script>
</body>
</html>